package com.demo.tran;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/test")
public class TransactionController {

    @Autowired
    private  TransactionMessageService transactionMessageService;
    @RequestMapping("/send")
    public String send()
    {
        transactionMessageService.sendTransactionMessage("TopicTest1234_tran","1","1111111111111111111111");
        transactionMessageService.sendTransactionMessage("TopicTest1234_tran","2","2222222222222222222222");
        return "index";
    }
}
